.class Lcom/waiqin365/base/login/cd;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/squareup/picasso/Transformation;


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/waiqin365/base/login/LoginMainActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/LoginMainActivity;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/cd;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    iput-object p2, p0, Lcom/waiqin365/base/login/cd;->a:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public key()Ljava/lang/String;
    .locals 1

    const-string/jumbo v0, "transformation desiredWidth"

    return-object v0
.end method

.method public transform(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/base/login/cd;->a:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    const/16 v0, 0x64

    iget-object v1, p0, Lcom/waiqin365/base/login/cd;->a:Ljava/lang/String;

    invoke-static {p1, v0, v1}, Lcom/waiqin365/compons/camera/b/a;->a(Landroid/graphics/Bitmap;ILjava/lang/String;)Z

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/base/login/cd;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    iget-object v0, v0, Lcom/waiqin365/base/login/LoginMainActivity;->mContext:Landroid/content/Context;

    const/high16 v1, 0x43800000    # 256.0f

    invoke-static {v0, v1}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/base/login/cd;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginMainActivity;->mContext:Landroid/content/Context;

    const/high16 v2, 0x43af0000    # 350.0f

    invoke-static {v1, v2}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v1

    const/4 v2, 0x0

    :try_start_0
    invoke-static {p1, v0, v1, v2}, Landroid/graphics/Bitmap;->createScaledBitmap(Landroid/graphics/Bitmap;IIZ)Landroid/graphics/Bitmap;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    if-eq v0, p1, :cond_1

    if-eqz p1, :cond_1

    :try_start_1
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->recycle()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :cond_1
    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    move-object v1, v0

    move-object v0, p1

    :goto_1
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    :catch_1
    move-exception v1

    goto :goto_1
.end method
